const AppError = require('../utils/appError')

const unknownRouterHandler = (req, res, next) => {
  next(new AppError(`未知的路由：${req.originalUrl}`, 404))
}

module.exports = unknownRouterHandler
